import request from '@/utils/request'
import qs from 'qs'

// 获取刷手列表
export function getBrush (pageNumber, pageSize, queryList) {
  return request({
    url: '/brush/brush/list',
    method: 'get',
    params: {
      pageNumber: pageNumber,
      pageSize: pageSize,
      phone: queryList.phone,
      email: queryList.email
    }
  })
}

// 禁用/启用刷手
export function updateBrush (id) {
  return request({
    url: '/brush/brush/update',
    method: 'post',
    data: qs.stringify({
      id
    })
  })
}


// 重置密码
export function resetPassword (id, password) {
  return request({
    url: '/auth/user/reset_password',
    method: 'post',
    data: qs.stringify({
      id,
      password
    })
  })
}
